import request from '@/utils/request'

//登录
export function login(data) {
  return request({
    url: '/login/login/',
    method: 'post',
    data,
  })
}

export function getInfo() {
  return request({
    url: '/sys/get_info/',
    method: 'post',
  })
}

export function upload(data) {
  return request({
    url: '/login/upload/',
    method: 'post',
    data,
  })
}

export function uploadScript(data) {
  return request({
    url: '/login/upload/script/',
    method: 'post',
    data,
  })
}

export function power_count(data) {
  return request({
    url: '/mini_back/power_count/ ',
    method: 'post',
    data,
  })
}

// 图片上传-可以上传视频的
export function apiUploadImg(data) {
  return request({
    url: '/back_front/img_upload/',
    method: 'post',
    data,
  })
}

// 富文本图片粘贴
export function apitextGetFile(data) {
  return request({
    url: '/notice/text_get_file/',
    method: 'post',
    data,
  })
}
